package com.atguigu.service.impl;

import com.atguigu.entities.User;
import com.atguigu.service.UserService;
import org.springframework.stereotype.Service;

/**
 * @Author: shenhao
 * @CreatTime: 2024/10/5 16:33
 * @Version: 1.0
 */
@Service
public class UserServiceImpl implements UserService {
    @Override
    public int addUser(User user) {
        return 1;
    }

    @Override
    public User getUserById(int id) {
        return new User(1001,"shenhao",25);
    }
}
